package cn.xfdzx.android.apps.shop.contract;

import cn.xfdzx.android.apps.shop.base.BaseView;
import cn.xfdzx.android.apps.shop.bean.FoundGoodTitleBeen;
import cn.xfdzx.android.apps.shop.bean.HomeRetailBeen;
import cn.xfdzx.android.apps.shop.bean.NearShopBeen;
import io.reactivex.Flowable;


/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */

public interface HomeNearShopContract {
    interface Model {


        Flowable<NearShopBeen> initNearData(String lng, String lat, String distance, String sort, String page, String limit);


    }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);


        void onInitNearDataSuccess(NearShopBeen bean);

        /**
         * 刷新完成
         */
        void finishRefresh();

        /**
         * 加载完成
         */
        void finishLoadMore();
    }

    interface Presenter {
        /**
         * 首页 市场采购
         *  初始化数据
         */

        void initNearData(boolean isRefresh, boolean isLoading, String lng, String lat, String distance, String sort, String page, String limit);
    }
}
